import request from "@/api/index";
interface dataSourceType {
  [propName: string]: any;
}
export const checkNameForm = async (_rule: dataSourceType = {}, value: any) => {
  console.log(_rule, value, '_rule')
  if (_rule.required && !_rule.fullField) {// 必填项验证非空并排除非必须项
    return Promise.reject(`${_rule.msg1}`);
  } else {// 没变化没校验的必要
    return Promise.resolve();
  }


};

export const checkCount = () => {
  return Promise.resolve()
}
